]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Minor cleanup
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 4 Apr 2020 00:00:35 +0000 (02:00 +0200)
committerverdre <jonas@dressler.it>
Tue, 28 Apr 2020 09:04:49 +0000 (09:04 +0000)
Use the more concise operator shorthand.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1177

js/ui/keyboard.js

index 7ce8668023ec147397f811b4c385fb4045bc58b4..4af2b18c4782ac564ebd839643352859750d795e 100644 (file)
@@ -722,7 +722,7 @@ var EmojiPager = GObject.registerClass({
 
     _onPan(action) {
         let [dist_, dx, dy_] = action.get_motion_delta(0);
-        this.delta = this.delta + dx;
+        this.delta += dx;
 
         if (this._currentKey != null) {
             this._currentKey.cancel();